# SORTABLE WIDGET & PROFILE BLOCK
$("#block_sortable").sortable()
$("#widget_sortable").sortable()
$("#social_icon_sortable").sortable()

# Click "Choose from Computer" Button
$('#user_upload_avatar').click ->
    $('.user_upload_avatar input').click()
    return

# If choose OK
$('.user_upload_avatar input').change (e) ->
    loading = '<img style="margin-top:45%;width:60px" alt="Please wait ..." class="loading_small" src="'+app.root+'/img/app/app/loading.gif">'
    $('#user_avatar_background').css 'background', 'aliceblue'
    $('.profile_original_avatar').html loading
    return